import request from '@/utils/request'
export const getdictionarychild = () => request.get('/core/code/config/dict-sort/root/list')
export const getchildapi = params => request.get('/core/code/config/dict-sort/child/list', { params })
export const postmuluapi = data => request.post('/core/code/config/dict-sort/folder', { ...data, isParams: true })
export const postfenleiapi = data => request.post('/core/code/config/dict-sort', { ...data, isParams: true })
export const putfenleiapi = data => request.post('/core/code/config/dict-sort/put', { ...data, isParams: true })
export const delfenleiapi = data => request.post('/core/code/config/dict-sort/delete', { ...data, isParams: true })
export const getzidianapi = params => request.get('/core/code/config/dict/list', { params })
export const delzidianapi = data => request.post('/core/code/config/dict/delete', { ...data, isParams: true })
export const postzidianlist = data => request.post('/core/code/config/dict', { ...data, isParams: true })
export const getzidianxinxi = params => request.get('/core/code/config/dict', { params })
export const putzidianxinxiapi = data => request.post('/core/code/config/dict/put', { ...data, isParams: true })
export const getshangfenleiapi = data => request.post('/core/code/config/dict-sort/move-up', { ...data, isParams: true })
export const getxiafenleiapi = data => request.post('/core/code/config/dict-sort/move-down', { ...data, isParams: true })
export const getshangzidianapi = data => request.post('/core/code/config/dict/move-up', { ...data, isParams: true })
export const getxiazidianapi = data => request.post('/core/code/config/dict/move-down', { ...data, isParams: true })
export const getxiugaimuluapi = data => request.post('/core/code/config/dict-sort/folder/put', { ...data, isParams: true })
